﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ASPMVC_first_app.Models;

namespace ASPMVC_first_app.Controllers
{
    public class MoviesController : Controller
    {
        // GET: Movie
        public ActionResult Index()
        {
            List<Movie> movieList = new List<Movie>();
            movieList.Add(new Movie() { Id = 0, Name = "50 shades"});
            movieList.Add(new Movie() { Id = 1, Name = "Voina i mir"});
            movieList.Add(new Movie() { Id = 2, Name = "Shantaram"});

            return View(movieList);
        }
    }
}